package com.beijiteshop.shop.ui.order

import com.beijiteshop.libcommon.network.RetrofitClient
import com.beijiteshop.shop.ui.order.repo.OrderRepo
import com.beijiteshop.shop.ui.order.repo.OrderService
import com.beijiteshop.shop.ui.order.vm.OrderVM
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/9 14:26
 * @Description
 */

val orderModule = module {

    single {
        get<RetrofitClient>().getService(OrderService::class.java)
    }

    single {
        OrderRepo(get())
    }

    viewModel {
        OrderVM(get())
    }
}